-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(material/chips): chips form control updating value immediately #30818
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix(material/chips): chips form control updating value immediately #30818
Conversation
@mmalerba , I have raised a new PR here. The old one seems to be messed up while rebasing. Also, I have added here the extra check for |
CARETAKER NOTE: There are still 18 projects with failing tests. I think they're most likely just bad tests, where people expected the current behavior because it was the current behavior, rather than because it actually makes sense. But we will need to go through and fix those before we can land this |
@mistrykaran91 I looked into one of the tests and the root of the problem seemed to be that a change event was fired even when the value didn't change. I think this is similar to what you were getting at with adding the |
Ok, Not sure how can I reproduce this one but i'll take a look and try to debug where it's failing |
Currently, when we have chips with form control, the value is updated only when its focused out. This fix will update the value of form control immediately Fixes angular#28065
9dff5e8
to
5915061
Compare
@mmalerba : I have added one |
Currently, when we have chips with form control, the value is updated only when its focused out. This fix will update the value of form control immediately
Fixes #28065